package xin.nick.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 系统用户信息
 * </p>
 *
 * @author Nick
 * @since 2023-06-23
 */
@Getter
@Setter
@TableName("t_system_user")
@Schema(description = "SystemUser对象-系统用户信息")
public class SystemUser {

    @Schema(description = "系统用户id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @Schema(description = "系统用户名字")
    @TableField("username")
    private String username;

    @Schema(description = "系统用户密码")
    @TableField("password")
    private String password;

    @Schema(description = "系统用户昵称")
    @TableField("nickname")
    private String nickname;

    @Schema(description = "系统用户手机号")
    @TableField("tel_number")
    private String telNumber;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "创建人")
    @TableField("create_user_id")
    private Long createUserId;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新人")
    @TableField("update_user_id")
    private Long updateUserId;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "是否禁用(1是,0否)")
    @TableField("disabled")
    private Boolean disabled;

    @Schema(description = "是否删除(1是,0否)")
    @TableField("deleted")
    @TableLogic
    private Boolean deleted;


}
